import request from '@/utils/request'

// 近期热搜热度走势
export const statisticsHotSearchTrand = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/statisticsHotSearchTrand',
        method: 'get',
        params: params
    });
}

// 近期热搜热度排名TOP10
export const statisticsMedia = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/statisticsMedia',
        method: 'get',
        params: params
    });
}

// 顶部六个数字
export const statisticsHotSearchTotal = (params) => {
    return new request({
        url: './public_sentiment_three//yqtjStatisticsHotSearch/statisticsHotSearchTotal',
        method: 'get',
        params: params
    });
}

// 详情接口
export const hotTrand = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/hotTrand',
        method: 'post',
        params: params
    });
}
// 获取视频
export const getVideoStream = (id) => {
    return new request({
        url: `./public_sentiment_three/yqtjHotSearch/getVideoStream?id=${id}`,
        method: 'post',
        responseType:'blob',
    });
}
// 获取相似度列表
export const getById = (params) => {
    return new request({
        url: `./public_sentiment_three/yqtjHotSearch/getById?id=${params}`,
        method: 'get',
    });
}


// 获取相似度列表
export const getHotListSimilarList = (params) => {
    return new request({
        url: `./public_sentiment_three/yqtjHotSearch/getHotListSimilarList?id=${params}`,
        method: 'post',
    });
}


// 自定义热点事件
export const getHotTrackHotSearchList = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/getHotTrackHotSearchList',
        method: 'post',
        data: params
    });
}

// 热点事件数值
export const statisticsHotThreeSearchTotal = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/statisticsHotSearchTotal',
        method: 'post',
        data: params
    });
}
// 预警列表数据
export const getHotTrackWarningAddList = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/getHotTrackWarningAddList',
        method: 'post',
        data: params
    });
}
//删除预警详情列表数据
export const deletedetaildata = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/deleteDetail',
        method: 'post',
        params: params
    });
}
export const addWarning = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/addWarning',
        method: 'post',
        data: params
    });
}

//情感分析一级饼图
export const oneEmotion = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/oneEmotion',
        method: 'get',
        params: params
    });
}

//情感分析一级饼图
export const twoEmotion = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/twoEmotion',
        method: 'get',
        params: params
    });
}

// 修改情感倾向
export const updateEmotionalPolarity = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/updateEmotionalPolarity',
        method: 'post',
        params: params
    });
}
// 删除预警列表数据
export const deleteHotTrackWarningAdd = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/delete',
        method: 'post',
        params: params
    });
}

//快报——报告上传
export const uploadAddreport = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/add',
        method: 'post',
        data: params
    });
}
export const businessimpactoption = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/getBusinessImpact',
        method: 'post',
        params: params
    });
}

export const  getDepartment = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/getDepartment',
        method: 'post',
        params: params
    });
}
export const getprovice = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/getProvince',
        method: 'get',
        params: params
    });
}

// 一级菜单
export const oneEventtype = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/getOneEventType',
        method: 'post',
        params: params
    });
}
// 三级菜单
export const twoEventtype = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/getTwoEventType',
        method: 'post',
        params: params
    });
}
// 三级菜单
export const threeEventtype = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/getThreeEventType',
        method: 'post',
        params: params
    });
}
//快报——生成报告
export const addreport = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjReportFast/add',
        method: 'post',
        data: params
    });
}
// 获取用户对应的角色
export const getRuleId = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjEventAnalyzeRule/getRuleId',
        method: 'post',
        params: params
    });
}

// 近期7天最高热点事件
export const statisticsMostHot = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/statisticsMostHot',
        method: 'get',
        params: params
    });
}

// 所在地域
export const statisticsSitehddress = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/statisticsSitehddress',
        method: 'get',
        params: params
    });
}

// 所在地域
export const statisticsAnalyzingRegions = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/statisticsAnalyzingRegions',
        method: 'get',
        params: params
    });
}

// 热词趋势统计图
export const statisticsHotWordTrand = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/statisticsHotWordTrand',
        method: 'get',
        params: params
    });
}

// 热词词云
export const threeWordCloud = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjStatisticsHotSearch/threeWordCloud',
        method: 'get',
        params: params
    });
}

// 详情接口
export const hotTrandThree = (params) => {
    return new request({
        url: './public_sentiment_three/yqtjHotTrackWarning/hotTrandThree',
        method: 'post',
        params: params
    });
}
// 获取相似度列表
export const getVideoStreamById = (params) => {
    return new request({
        url: `./public_sentiment_three/yqtjHotSearch/getVideoStreamById?id=${params}`,
        method: 'post',
        responseType:'blob',
    });
}


// 获取相似度列表
export const getHotListSimilarListById = (params) => {
    return new request({
        url: `./public_sentiment_three/yqtjHotSearch/getHotListSimilarListById?id=${params}`,
        method: 'post',
    });
}

